//package com;
//
//import com.boot.datasource.DynamicDataSourceRegister;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.boot.builder.SpringApplicationBuilder;
//import org.springframework.boot.context.web.SpringBootServletInitializer;
//import org.springframework.boot.web.servlet.ServletComponentScan;
//import org.springframework.context.annotation.Import;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//@SpringBootApplication
//@ServletComponentScan
//@EnableTransactionManagement
//@Import({DynamicDataSourceRegister.class})
//public class SpringBootStartApplication extends SpringBootServletInitializer  {
//
//    public static void main(String[] args) {
//        SpringApplication application=new SpringApplication(SpringBootStartApplication.class);
//        application.run(args);
//    }
//
//    /**
//     * 如果要使用tomcat来加载jsp的话必须继承 SpringBootServletInitializer 类并重写configure方法
//     */
//	@Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        // 注意这里要指向原先用main方法执行的Application启动类
//        return builder.sources(this.getClass());
//    }
//
//}
